<?php echo select_tag(
	'caloriescat', 
	objects_for_select(
		$cats, 
		'getId', 
		'getName', 
		'', 
		array('include_blank' => true)),
	array(
		'id' => 'cats-' . $num, 
		'onchange' => remote_function(array(
			'update' => 'calories-' . $num, 
			'url' => 'calories/selectcat',
			'with' => "'catid=' + jQuery('#cats-$num').val()+'&num=$num'")))
)?>
